 <?php

/**
 * User_model
 */
class User_model extends CI_Model {

    function User_model()
    {
        parent::__construct();
    }


    public function getAllUsers()
    {    
        return $this->db->get('users');
    }


    public function add($email)
    {    
        $usr = new stdClass();
        $usr->email = $email;
        return $this->db->insert('users', $usr);
    }

}  